<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>CRUD示例</title>
</head>
<body>
	<h2>CRUD（增加Create、查询Retrieve、更新Update、删除Delete）示例</h2>
	<!--action="#"--><!--th:action="@{/product}"-->
	<form action="/product" th:object="${product}" method="post">
		ID:&nbsp;&nbsp;<input th:field="*{id}" value="123" /><br/>
		水果: <input th:field="*{name}" value="苹果" /><br/>
		价格: <input th:field="*{price}" value="6.00" /><br/>
		<input type="submit" value="增加" /> <input type="reset" value="重置" /><br/>
	</form>

	<br/>
	<!--用post模拟删除-->
	<form action="/del-product" method="post">
		ID:&nbsp; <input name="id" value="123" />
		<input type="submit" value="删除" /><br/>
	</form>

	<br/>
	<form action="/products" method="get">
		<input type="submit" value="查询所有水果" /><br/>
	</form>
</body>
</html>